]> dgit.raspbian.org Git - gnome-shell.git/commit
environment: Handle @content for property transitions
authorAndre Moreira Magalhaes <andre@endlessm.com>
Wed, 7 Oct 2020 23:21:04 +0000 (20:21 -0300)
committerAndre Moreira Magalhaes <andre@endlessm.com>
Wed, 7 Oct 2020 23:49:09 +0000 (20:49 -0300)
commitcc9f66d78463b69840958d1997800a7a72b0ceb0
tree8095c2099d639f479ea79fd942dd9b370d1bf988
parentb41ef2f6e3b2a801331d846ac5fbfd5d349eb4e5
environment: Handle @content for property transitions

When using `Actor.ease_property` if the property starts with '@' and the
duration of the transition is zero (which may happen if the actor is not
mapped even if a non-zero duration was passed to `ease_property`), the
impl will try getting the actual target object where the property should
be set.

This works fine for most cases but it currently throws an error when
passing '@content.*' properties. Fix this by handling '@content' as
a property of `actor.content` (used by MetaBackgroundActor when
showing the overview).

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1461
js/ui/environment.js